let name = '张飞';
var age = 18;
var flag = true

function sum(num1, num2) {
  return num1+num2;
}

if(flag) {
  console.log(sum(20, 30));
}

//1.导出方式一
export {
  flag, sum
}

//2.导出方式二
export var  age = age;

//3.导出函数
export function mul(num1, num2) {
  return num1*num2;
}

//4.导出类
export class Person{
  run() {
    console.log('Person In Run');
  }
}

//5. export default 默认导出
// const address = '新疆';
// export{
//   address
// }
// export const address = '新疆';
// const address = '新疆';
//
// export default address;

export default function (argument) {
  console.log(argument);
}